/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.dengues.model.component.impl;

import java.util.Collection;
import org.dengues.model.component.COLMUNType;
import org.dengues.model.component.ComponentPackage;
import org.dengues.model.component.ITEMSType;
import org.dengues.model.component.PARAMETERType;

import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;

import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;

import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.EObjectImpl;
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
import org.eclipse.emf.ecore.util.InternalEList;

/**
 * <!-- begin-user-doc -->
 * An implementation of the model object '<em><b>PARAMETER Type</b></em>'.
 * <!-- end-user-doc -->
 * <p>
 * The following features are implemented:
 * <ul>
 *   <li>{@link org.dengues.model.component.impl.PARAMETERTypeImpl#getITEMS <em>ITEMS</em>}</li>
 *   <li>{@link org.dengues.model.component.impl.PARAMETERTypeImpl#getCOLMUN <em>COLMUN</em>}</li>
 *   <li>{@link org.dengues.model.component.impl.PARAMETERTypeImpl#isBASESHEMA <em>BASESHEMA</em>}</li>
 *   <li>{@link org.dengues.model.component.impl.PARAMETERTypeImpl#getCONTEXT <em>CONTEXT</em>}</li>
 *   <li>{@link org.dengues.model.component.impl.PARAMETERTypeImpl#getDEFAULT <em>DEFAULT</em>}</li>
 *   <li>{@link org.dengues.model.component.impl.PARAMETERTypeImpl#getFIELD <em>FIELD</em>}</li>
 *   <li>{@link org.dengues.model.component.impl.PARAMETERTypeImpl#isIFREADONLY <em>IFREADONLY</em>}</li>
 *   <li>{@link org.dengues.model.component.impl.PARAMETERTypeImpl#isIFREQUIRED <em>IFREQUIRED</em>}</li>
 *   <li>{@link org.dengues.model.component.impl.PARAMETERTypeImpl#isIFSHOW <em>IFSHOW</em>}</li>
 *   <li>{@link org.dengues.model.component.impl.PARAMETERTypeImpl#getNAME <em>NAME</em>}</li>
 *   <li>{@link org.dengues.model.component.impl.PARAMETERTypeImpl#getNBLINES <em>NBLINES</em>}</li>
 *   <li>{@link org.dengues.model.component.impl.PARAMETERTypeImpl#getREPOSITORYVALUE <em>REPOSITORYVALUE</em>}</li>
 *   <li>{@link org.dengues.model.component.impl.PARAMETERTypeImpl#getROWNUM <em>ROWNUM</em>}</li>
 * </ul>
 * </p>
 *
 * @generated
 */
public class PARAMETERTypeImpl extends EObjectImpl implements PARAMETERType {
    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public static final String copyright = "// ============================================================================\r\n//\r\n// Copyright (C) 2006-2007 Dengues\r\n//\r\n// Google Group: http://groups.google.com/group/dengues\r\n// QQ Group: 24885404\r\n//\r\n// This library is free software; you can redistribute it and/or\r\n// modify it under the terms of the GNU Lesser General Public\r\n// License as published by the Free Software Foundation; either\r\n// version 2.1 of the License.\r\n//\r\n// This library is distributed in the hope that it will be useful,\r\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\r\n// Lesser General Public License for more details.\r\n//\r\n// You should have received a copy of the GNU General Public License\r\n// along with this program; if not, write to the Free Software\r\n// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.\r\n//\r\n// ============================================================================\r\n";

    /**
     * The cached value of the '{@link #getITEMS() <em>ITEMS</em>}' containment reference.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @see #getITEMS()
     * @generated
     * @ordered
     */
    protected ITEMSType iTEMS;

    /**
     * The cached value of the '{@link #getCOLMUN() <em>COLMUN</em>}' containment reference list.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @see #getCOLMUN()
     * @generated
     * @ordered
     */
    protected EList<COLMUNType> cOLMUN;

    /**
     * The default value of the '{@link #isBASESHEMA() <em>BASESHEMA</em>}' attribute.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @see #isBASESHEMA()
     * @generated
     * @ordered
     */
    protected static final boolean BASESHEMA_EDEFAULT = false;

    /**
     * The cached value of the '{@link #isBASESHEMA() <em>BASESHEMA</em>}' attribute.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @see #isBASESHEMA()
     * @generated
     * @ordered
     */
    protected boolean bASESHEMA = BASESHEMA_EDEFAULT;

    /**
     * This is true if the BASESHEMA attribute has been set.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     * @ordered
     */
    protected boolean bASESHEMAESet;

    /**
     * The default value of the '{@link #getCONTEXT() <em>CONTEXT</em>}' attribute.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @see #getCONTEXT()
     * @generated
     * @ordered
     */
    protected static final String CONTEXT_EDEFAULT = null;

    /**
     * The cached value of the '{@link #getCONTEXT() <em>CONTEXT</em>}' attribute.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @see #getCONTEXT()
     * @generated
     * @ordered
     */
    protected String cONTEXT = CONTEXT_EDEFAULT;

    /**
     * The default value of the '{@link #getDEFAULT() <em>DEFAULT</em>}' attribute.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @see #getDEFAULT()
     * @generated
     * @ordered
     */
    protected static final String DEFAULT_EDEFAULT = null;

    /**
     * The cached value of the '{@link #getDEFAULT() <em>DEFAULT</em>}' attribute.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @see #getDEFAULT()
     * @generated
     * @ordered
     */
    protected String dEFAULT = DEFAULT_EDEFAULT;

    /**
     * The default value of the '{@link #getFIELD() <em>FIELD</em>}' attribute.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @see #getFIELD()
     * @generated
     * @ordered
     */
    protected static final String FIELD_EDEFAULT = null;

    /**
     * The cached value of the '{@link #getFIELD() <em>FIELD</em>}' attribute.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @see #getFIELD()
     * @generated
     * @ordered
     */
    protected String fIELD = FIELD_EDEFAULT;

    /**
     * The default value of the '{@link #isIFREADONLY() <em>IFREADONLY</em>}' attribute.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @see #isIFREADONLY()
     * @generated
     * @ordered
     */
    protected static final boolean IFREADONLY_EDEFAULT = false;

    /**
     * The cached value of the '{@link #isIFREADONLY() <em>IFREADONLY</em>}' attribute.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @see #isIFREADONLY()
     * @generated
     * @ordered
     */
    protected boolean iFREADONLY = IFREADONLY_EDEFAULT;

    /**
     * This is true if the IFREADONLY attribute has been set.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     * @ordered
     */
    protected boolean iFREADONLYESet;

    /**
     * The default value of the '{@link #isIFREQUIRED() <em>IFREQUIRED</em>}' attribute.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @see #isIFREQUIRED()
     * @generated
     * @ordered
     */
    protected static final boolean IFREQUIRED_EDEFAULT = false;

    /**
     * The cached value of the '{@link #isIFREQUIRED() <em>IFREQUIRED</em>}' attribute.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @see #isIFREQUIRED()
     * @generated
     * @ordered
     */
    protected boolean iFREQUIRED = IFREQUIRED_EDEFAULT;

    /**
     * This is true if the IFREQUIRED attribute has been set.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     * @ordered
     */
    protected boolean iFREQUIREDESet;

    /**
     * The default value of the '{@link #isIFSHOW() <em>IFSHOW</em>}' attribute.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @see #isIFSHOW()
     * @generated
     * @ordered
     */
    protected static final boolean IFSHOW_EDEFAULT = true;

    /**
     * The cached value of the '{@link #isIFSHOW() <em>IFSHOW</em>}' attribute.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @see #isIFSHOW()
     * @generated
     * @ordered
     */
    protected boolean iFSHOW = IFSHOW_EDEFAULT;

    /**
     * This is true if the IFSHOW attribute has been set.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     * @ordered
     */
    protected boolean iFSHOWESet;

    /**
     * The default value of the '{@link #getNAME() <em>NAME</em>}' attribute.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @see #getNAME()
     * @generated
     * @ordered
     */
    protected static final String NAME_EDEFAULT = null;

    /**
     * The cached value of the '{@link #getNAME() <em>NAME</em>}' attribute.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @see #getNAME()
     * @generated
     * @ordered
     */
    protected String nAME = NAME_EDEFAULT;

    /**
     * The default value of the '{@link #getNBLINES() <em>NBLINES</em>}' attribute.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @see #getNBLINES()
     * @generated
     * @ordered
     */
    protected static final int NBLINES_EDEFAULT = 0;

    /**
     * The cached value of the '{@link #getNBLINES() <em>NBLINES</em>}' attribute.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @see #getNBLINES()
     * @generated
     * @ordered
     */
    protected int nBLINES = NBLINES_EDEFAULT;

    /**
     * This is true if the NBLINES attribute has been set.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     * @ordered
     */
    protected boolean nBLINESESet;

    /**
     * The default value of the '{@link #getREPOSITORYVALUE() <em>REPOSITORYVALUE</em>}' attribute.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @see #getREPOSITORYVALUE()
     * @generated
     * @ordered
     */
    protected static final String REPOSITORYVALUE_EDEFAULT = null;

    /**
     * The cached value of the '{@link #getREPOSITORYVALUE() <em>REPOSITORYVALUE</em>}' attribute.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @see #getREPOSITORYVALUE()
     * @generated
     * @ordered
     */
    protected String rEPOSITORYVALUE = REPOSITORYVALUE_EDEFAULT;

    /**
     * The default value of the '{@link #getROWNUM() <em>ROWNUM</em>}' attribute.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @see #getROWNUM()
     * @generated
     * @ordered
     */
    protected static final int ROWNUM_EDEFAULT = 0;

    /**
     * The cached value of the '{@link #getROWNUM() <em>ROWNUM</em>}' attribute.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @see #getROWNUM()
     * @generated
     * @ordered
     */
    protected int rOWNUM = ROWNUM_EDEFAULT;

    /**
     * This is true if the ROWNUM attribute has been set.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     * @ordered
     */
    protected boolean rOWNUMESet;

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    protected PARAMETERTypeImpl() {
        super();
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    @Override
    protected EClass eStaticClass() {
        return ComponentPackage.Literals.PARAMETER_TYPE;
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public ITEMSType getITEMS() {
        return iTEMS;
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public NotificationChain basicSetITEMS(ITEMSType newITEMS, NotificationChain msgs) {
        ITEMSType oldITEMS = iTEMS;
        iTEMS = newITEMS;
        if (eNotificationRequired()) {
            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ComponentPackage.PARAMETER_TYPE__ITEMS, oldITEMS, newITEMS);
            if (msgs == null) msgs = notification; else msgs.add(notification);
        }
        return msgs;
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public void setITEMS(ITEMSType newITEMS) {
        if (newITEMS != iTEMS) {
            NotificationChain msgs = null;
            if (iTEMS != null)
                msgs = ((InternalEObject)iTEMS).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ComponentPackage.PARAMETER_TYPE__ITEMS, null, msgs);
            if (newITEMS != null)
                msgs = ((InternalEObject)newITEMS).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ComponentPackage.PARAMETER_TYPE__ITEMS, null, msgs);
            msgs = basicSetITEMS(newITEMS, msgs);
            if (msgs != null) msgs.dispatch();
        }
        else if (eNotificationRequired())
            eNotify(new ENotificationImpl(this, Notification.SET, ComponentPackage.PARAMETER_TYPE__ITEMS, newITEMS, newITEMS));
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public EList<COLMUNType> getCOLMUN() {
        if (cOLMUN == null) {
            cOLMUN = new EObjectContainmentEList<COLMUNType>(COLMUNType.class, this, ComponentPackage.PARAMETER_TYPE__COLMUN);
        }
        return cOLMUN;
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public boolean isBASESHEMA() {
        return bASESHEMA;
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public void setBASESHEMA(boolean newBASESHEMA) {
        boolean oldBASESHEMA = bASESHEMA;
        bASESHEMA = newBASESHEMA;
        boolean oldBASESHEMAESet = bASESHEMAESet;
        bASESHEMAESet = true;
        if (eNotificationRequired())
            eNotify(new ENotificationImpl(this, Notification.SET, ComponentPackage.PARAMETER_TYPE__BASESHEMA, oldBASESHEMA, bASESHEMA, !oldBASESHEMAESet));
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public void unsetBASESHEMA() {
        boolean oldBASESHEMA = bASESHEMA;
        boolean oldBASESHEMAESet = bASESHEMAESet;
        bASESHEMA = BASESHEMA_EDEFAULT;
        bASESHEMAESet = false;
        if (eNotificationRequired())
            eNotify(new ENotificationImpl(this, Notification.UNSET, ComponentPackage.PARAMETER_TYPE__BASESHEMA, oldBASESHEMA, BASESHEMA_EDEFAULT, oldBASESHEMAESet));
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public boolean isSetBASESHEMA() {
        return bASESHEMAESet;
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public String getCONTEXT() {
        return cONTEXT;
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public void setCONTEXT(String newCONTEXT) {
        String oldCONTEXT = cONTEXT;
        cONTEXT = newCONTEXT;
        if (eNotificationRequired())
            eNotify(new ENotificationImpl(this, Notification.SET, ComponentPackage.PARAMETER_TYPE__CONTEXT, oldCONTEXT, cONTEXT));
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public String getDEFAULT() {
        return dEFAULT;
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public void setDEFAULT(String newDEFAULT) {
        String oldDEFAULT = dEFAULT;
        dEFAULT = newDEFAULT;
        if (eNotificationRequired())
            eNotify(new ENotificationImpl(this, Notification.SET, ComponentPackage.PARAMETER_TYPE__DEFAULT, oldDEFAULT, dEFAULT));
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public String getFIELD() {
        return fIELD;
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public void setFIELD(String newFIELD) {
        String oldFIELD = fIELD;
        fIELD = newFIELD;
        if (eNotificationRequired())
            eNotify(new ENotificationImpl(this, Notification.SET, ComponentPackage.PARAMETER_TYPE__FIELD, oldFIELD, fIELD));
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public boolean isIFREADONLY() {
        return iFREADONLY;
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public void setIFREADONLY(boolean newIFREADONLY) {
        boolean oldIFREADONLY = iFREADONLY;
        iFREADONLY = newIFREADONLY;
        boolean oldIFREADONLYESet = iFREADONLYESet;
        iFREADONLYESet = true;
        if (eNotificationRequired())
            eNotify(new ENotificationImpl(this, Notification.SET, ComponentPackage.PARAMETER_TYPE__IFREADONLY, oldIFREADONLY, iFREADONLY, !oldIFREADONLYESet));
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public void unsetIFREADONLY() {
        boolean oldIFREADONLY = iFREADONLY;
        boolean oldIFREADONLYESet = iFREADONLYESet;
        iFREADONLY = IFREADONLY_EDEFAULT;
        iFREADONLYESet = false;
        if (eNotificationRequired())
            eNotify(new ENotificationImpl(this, Notification.UNSET, ComponentPackage.PARAMETER_TYPE__IFREADONLY, oldIFREADONLY, IFREADONLY_EDEFAULT, oldIFREADONLYESet));
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public boolean isSetIFREADONLY() {
        return iFREADONLYESet;
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public boolean isIFREQUIRED() {
        return iFREQUIRED;
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public void setIFREQUIRED(boolean newIFREQUIRED) {
        boolean oldIFREQUIRED = iFREQUIRED;
        iFREQUIRED = newIFREQUIRED;
        boolean oldIFREQUIREDESet = iFREQUIREDESet;
        iFREQUIREDESet = true;
        if (eNotificationRequired())
            eNotify(new ENotificationImpl(this, Notification.SET, ComponentPackage.PARAMETER_TYPE__IFREQUIRED, oldIFREQUIRED, iFREQUIRED, !oldIFREQUIREDESet));
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public void unsetIFREQUIRED() {
        boolean oldIFREQUIRED = iFREQUIRED;
        boolean oldIFREQUIREDESet = iFREQUIREDESet;
        iFREQUIRED = IFREQUIRED_EDEFAULT;
        iFREQUIREDESet = false;
        if (eNotificationRequired())
            eNotify(new ENotificationImpl(this, Notification.UNSET, ComponentPackage.PARAMETER_TYPE__IFREQUIRED, oldIFREQUIRED, IFREQUIRED_EDEFAULT, oldIFREQUIREDESet));
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public boolean isSetIFREQUIRED() {
        return iFREQUIREDESet;
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public boolean isIFSHOW() {
        return iFSHOW;
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public void setIFSHOW(boolean newIFSHOW) {
        boolean oldIFSHOW = iFSHOW;
        iFSHOW = newIFSHOW;
        boolean oldIFSHOWESet = iFSHOWESet;
        iFSHOWESet = true;
        if (eNotificationRequired())
            eNotify(new ENotificationImpl(this, Notification.SET, ComponentPackage.PARAMETER_TYPE__IFSHOW, oldIFSHOW, iFSHOW, !oldIFSHOWESet));
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public void unsetIFSHOW() {
        boolean oldIFSHOW = iFSHOW;
        boolean oldIFSHOWESet = iFSHOWESet;
        iFSHOW = IFSHOW_EDEFAULT;
        iFSHOWESet = false;
        if (eNotificationRequired())
            eNotify(new ENotificationImpl(this, Notification.UNSET, ComponentPackage.PARAMETER_TYPE__IFSHOW, oldIFSHOW, IFSHOW_EDEFAULT, oldIFSHOWESet));
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public boolean isSetIFSHOW() {
        return iFSHOWESet;
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public String getNAME() {
        return nAME;
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public void setNAME(String newNAME) {
        String oldNAME = nAME;
        nAME = newNAME;
        if (eNotificationRequired())
            eNotify(new ENotificationImpl(this, Notification.SET, ComponentPackage.PARAMETER_TYPE__NAME, oldNAME, nAME));
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public int getNBLINES() {
        return nBLINES;
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public void setNBLINES(int newNBLINES) {
        int oldNBLINES = nBLINES;
        nBLINES = newNBLINES;
        boolean oldNBLINESESet = nBLINESESet;
        nBLINESESet = true;
        if (eNotificationRequired())
            eNotify(new ENotificationImpl(this, Notification.SET, ComponentPackage.PARAMETER_TYPE__NBLINES, oldNBLINES, nBLINES, !oldNBLINESESet));
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public void unsetNBLINES() {
        int oldNBLINES = nBLINES;
        boolean oldNBLINESESet = nBLINESESet;
        nBLINES = NBLINES_EDEFAULT;
        nBLINESESet = false;
        if (eNotificationRequired())
            eNotify(new ENotificationImpl(this, Notification.UNSET, ComponentPackage.PARAMETER_TYPE__NBLINES, oldNBLINES, NBLINES_EDEFAULT, oldNBLINESESet));
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public boolean isSetNBLINES() {
        return nBLINESESet;
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public String getREPOSITORYVALUE() {
        return rEPOSITORYVALUE;
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public void setREPOSITORYVALUE(String newREPOSITORYVALUE) {
        String oldREPOSITORYVALUE = rEPOSITORYVALUE;
        rEPOSITORYVALUE = newREPOSITORYVALUE;
        if (eNotificationRequired())
            eNotify(new ENotificationImpl(this, Notification.SET, ComponentPackage.PARAMETER_TYPE__REPOSITORYVALUE, oldREPOSITORYVALUE, rEPOSITORYVALUE));
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public int getROWNUM() {
        return rOWNUM;
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public void setROWNUM(int newROWNUM) {
        int oldROWNUM = rOWNUM;
        rOWNUM = newROWNUM;
        boolean oldROWNUMESet = rOWNUMESet;
        rOWNUMESet = true;
        if (eNotificationRequired())
            eNotify(new ENotificationImpl(this, Notification.SET, ComponentPackage.PARAMETER_TYPE__ROWNUM, oldROWNUM, rOWNUM, !oldROWNUMESet));
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public void unsetROWNUM() {
        int oldROWNUM = rOWNUM;
        boolean oldROWNUMESet = rOWNUMESet;
        rOWNUM = ROWNUM_EDEFAULT;
        rOWNUMESet = false;
        if (eNotificationRequired())
            eNotify(new ENotificationImpl(this, Notification.UNSET, ComponentPackage.PARAMETER_TYPE__ROWNUM, oldROWNUM, ROWNUM_EDEFAULT, oldROWNUMESet));
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public boolean isSetROWNUM() {
        return rOWNUMESet;
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    @Override
    public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
        switch (featureID) {
            case ComponentPackage.PARAMETER_TYPE__ITEMS:
                return basicSetITEMS(null, msgs);
            case ComponentPackage.PARAMETER_TYPE__COLMUN:
                return ((InternalEList<?>)getCOLMUN()).basicRemove(otherEnd, msgs);
        }
        return super.eInverseRemove(otherEnd, featureID, msgs);
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    @Override
    public Object eGet(int featureID, boolean resolve, boolean coreType) {
        switch (featureID) {
            case ComponentPackage.PARAMETER_TYPE__ITEMS:
                return getITEMS();
            case ComponentPackage.PARAMETER_TYPE__COLMUN:
                return getCOLMUN();
            case ComponentPackage.PARAMETER_TYPE__BASESHEMA:
                return isBASESHEMA() ? Boolean.TRUE : Boolean.FALSE;
            case ComponentPackage.PARAMETER_TYPE__CONTEXT:
                return getCONTEXT();
            case ComponentPackage.PARAMETER_TYPE__DEFAULT:
                return getDEFAULT();
            case ComponentPackage.PARAMETER_TYPE__FIELD:
                return getFIELD();
            case ComponentPackage.PARAMETER_TYPE__IFREADONLY:
                return isIFREADONLY() ? Boolean.TRUE : Boolean.FALSE;
            case ComponentPackage.PARAMETER_TYPE__IFREQUIRED:
                return isIFREQUIRED() ? Boolean.TRUE : Boolean.FALSE;
            case ComponentPackage.PARAMETER_TYPE__IFSHOW:
                return isIFSHOW() ? Boolean.TRUE : Boolean.FALSE;
            case ComponentPackage.PARAMETER_TYPE__NAME:
                return getNAME();
            case ComponentPackage.PARAMETER_TYPE__NBLINES:
                return new Integer(getNBLINES());
            case ComponentPackage.PARAMETER_TYPE__REPOSITORYVALUE:
                return getREPOSITORYVALUE();
            case ComponentPackage.PARAMETER_TYPE__ROWNUM:
                return new Integer(getROWNUM());
        }
        return super.eGet(featureID, resolve, coreType);
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    @SuppressWarnings("unchecked")
    @Override
    public void eSet(int featureID, Object newValue) {
        switch (featureID) {
            case ComponentPackage.PARAMETER_TYPE__ITEMS:
                setITEMS((ITEMSType)newValue);
                return;
            case ComponentPackage.PARAMETER_TYPE__COLMUN:
                getCOLMUN().clear();
                getCOLMUN().addAll((Collection<? extends COLMUNType>)newValue);
                return;
            case ComponentPackage.PARAMETER_TYPE__BASESHEMA:
                setBASESHEMA(((Boolean)newValue).booleanValue());
                return;
            case ComponentPackage.PARAMETER_TYPE__CONTEXT:
                setCONTEXT((String)newValue);
                return;
            case ComponentPackage.PARAMETER_TYPE__DEFAULT:
                setDEFAULT((String)newValue);
                return;
            case ComponentPackage.PARAMETER_TYPE__FIELD:
                setFIELD((String)newValue);
                return;
            case ComponentPackage.PARAMETER_TYPE__IFREADONLY:
                setIFREADONLY(((Boolean)newValue).booleanValue());
                return;
            case ComponentPackage.PARAMETER_TYPE__IFREQUIRED:
                setIFREQUIRED(((Boolean)newValue).booleanValue());
                return;
            case ComponentPackage.PARAMETER_TYPE__IFSHOW:
                setIFSHOW(((Boolean)newValue).booleanValue());
                return;
            case ComponentPackage.PARAMETER_TYPE__NAME:
                setNAME((String)newValue);
                return;
            case ComponentPackage.PARAMETER_TYPE__NBLINES:
                setNBLINES(((Integer)newValue).intValue());
                return;
            case ComponentPackage.PARAMETER_TYPE__REPOSITORYVALUE:
                setREPOSITORYVALUE((String)newValue);
                return;
            case ComponentPackage.PARAMETER_TYPE__ROWNUM:
                setROWNUM(((Integer)newValue).intValue());
                return;
        }
        super.eSet(featureID, newValue);
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    @Override
    public void eUnset(int featureID) {
        switch (featureID) {
            case ComponentPackage.PARAMETER_TYPE__ITEMS:
                setITEMS((ITEMSType)null);
                return;
            case ComponentPackage.PARAMETER_TYPE__COLMUN:
                getCOLMUN().clear();
                return;
            case ComponentPackage.PARAMETER_TYPE__BASESHEMA:
                unsetBASESHEMA();
                return;
            case ComponentPackage.PARAMETER_TYPE__CONTEXT:
                setCONTEXT(CONTEXT_EDEFAULT);
                return;
            case ComponentPackage.PARAMETER_TYPE__DEFAULT:
                setDEFAULT(DEFAULT_EDEFAULT);
                return;
            case ComponentPackage.PARAMETER_TYPE__FIELD:
                setFIELD(FIELD_EDEFAULT);
                return;
            case ComponentPackage.PARAMETER_TYPE__IFREADONLY:
                unsetIFREADONLY();
                return;
            case ComponentPackage.PARAMETER_TYPE__IFREQUIRED:
                unsetIFREQUIRED();
                return;
            case ComponentPackage.PARAMETER_TYPE__IFSHOW:
                unsetIFSHOW();
                return;
            case ComponentPackage.PARAMETER_TYPE__NAME:
                setNAME(NAME_EDEFAULT);
                return;
            case ComponentPackage.PARAMETER_TYPE__NBLINES:
                unsetNBLINES();
                return;
            case ComponentPackage.PARAMETER_TYPE__REPOSITORYVALUE:
                setREPOSITORYVALUE(REPOSITORYVALUE_EDEFAULT);
                return;
            case ComponentPackage.PARAMETER_TYPE__ROWNUM:
                unsetROWNUM();
                return;
        }
        super.eUnset(featureID);
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    @Override
    public boolean eIsSet(int featureID) {
        switch (featureID) {
            case ComponentPackage.PARAMETER_TYPE__ITEMS:
                return iTEMS != null;
            case ComponentPackage.PARAMETER_TYPE__COLMUN:
                return cOLMUN != null && !cOLMUN.isEmpty();
            case ComponentPackage.PARAMETER_TYPE__BASESHEMA:
                return isSetBASESHEMA();
            case ComponentPackage.PARAMETER_TYPE__CONTEXT:
                return CONTEXT_EDEFAULT == null ? cONTEXT != null : !CONTEXT_EDEFAULT.equals(cONTEXT);
            case ComponentPackage.PARAMETER_TYPE__DEFAULT:
                return DEFAULT_EDEFAULT == null ? dEFAULT != null : !DEFAULT_EDEFAULT.equals(dEFAULT);
            case ComponentPackage.PARAMETER_TYPE__FIELD:
                return FIELD_EDEFAULT == null ? fIELD != null : !FIELD_EDEFAULT.equals(fIELD);
            case ComponentPackage.PARAMETER_TYPE__IFREADONLY:
                return isSetIFREADONLY();
            case ComponentPackage.PARAMETER_TYPE__IFREQUIRED:
                return isSetIFREQUIRED();
            case ComponentPackage.PARAMETER_TYPE__IFSHOW:
                return isSetIFSHOW();
            case ComponentPackage.PARAMETER_TYPE__NAME:
                return NAME_EDEFAULT == null ? nAME != null : !NAME_EDEFAULT.equals(nAME);
            case ComponentPackage.PARAMETER_TYPE__NBLINES:
                return isSetNBLINES();
            case ComponentPackage.PARAMETER_TYPE__REPOSITORYVALUE:
                return REPOSITORYVALUE_EDEFAULT == null ? rEPOSITORYVALUE != null : !REPOSITORYVALUE_EDEFAULT.equals(rEPOSITORYVALUE);
            case ComponentPackage.PARAMETER_TYPE__ROWNUM:
                return isSetROWNUM();
        }
        return super.eIsSet(featureID);
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    @Override
    public String toString() {
        if (eIsProxy()) return super.toString();

        StringBuffer result = new StringBuffer(super.toString());
        result.append(" (bASESHEMA: ");
        if (bASESHEMAESet) result.append(bASESHEMA); else result.append("<unset>");
        result.append(", cONTEXT: ");
        result.append(cONTEXT);
        result.append(", dEFAULT: ");
        result.append(dEFAULT);
        result.append(", fIELD: ");
        result.append(fIELD);
        result.append(", iFREADONLY: ");
        if (iFREADONLYESet) result.append(iFREADONLY); else result.append("<unset>");
        result.append(", iFREQUIRED: ");
        if (iFREQUIREDESet) result.append(iFREQUIRED); else result.append("<unset>");
        result.append(", iFSHOW: ");
        if (iFSHOWESet) result.append(iFSHOW); else result.append("<unset>");
        result.append(", nAME: ");
        result.append(nAME);
        result.append(", nBLINES: ");
        if (nBLINESESet) result.append(nBLINES); else result.append("<unset>");
        result.append(", rEPOSITORYVALUE: ");
        result.append(rEPOSITORYVALUE);
        result.append(", rOWNUM: ");
        if (rOWNUMESet) result.append(rOWNUM); else result.append("<unset>");
        result.append(')');
        return result.toString();
    }

} //PARAMETERTypeImpl
